From: Jasper St. Pierre Date: Fri, 24 Aug 2012 02:33:35 +0000 (-0300) Subject: workspace: Refactor code a bit X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6054 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6851c5443adb856792039ab987eff7c8dcdc76eb;p=gnome-shell.git workspace: Refactor code a bit https://bugzilla.gnome.org/show_bug.cgi?id=582650 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index cff9a4278..8edab8b62 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -986,15 +986,10 @@ const Workspace = new Lang.Class({ if (this._reservedSlot == clone) return; - if (clone && this.containsMetaWindow(clone.metaWindow)) { - this._reservedSlot = null; - this.positionWindows(WindowPositionFlags.ANIMATE); - return; - } - if (clone) - this._reservedSlot = clone; - else - this._reservedSlot = null; + if (clone && this.containsMetaWindow(clone.metaWindow)) + clone = null; + + this._reservedSlot = clone; this.positionWindows(WindowPositionFlags.ANIMATE); },